package cn.sakura;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author icatw
 * @date 2022/11/11
 * @email 762188827@qq.com
 * @apiNote
 */
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@ComponentScan(basePackages = {"cn.sakura.**"})
public class App {
    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(App.class, args);
    }

    //@Bean
    //public CommandLineRunner run(ApplicationContext context) {
    //    return args -> {
    //        String[] beans = context.getBeanDefinitionNames();
    //        Arrays.stream(beans).sorted().forEach(System.out::println);
    //    };
    //}
}
